﻿@model MobileTrack.Web.ViewModels.UserViewModel
@using (this.Html.BeginForm())
{
    <fieldset>
        @this.Html.LabelFor(m => m.UserName)
        @this.Html.ValidationMessageFor(m => m.UserName)
        @this.Html.TextBoxFor(m => m.UserName)

        @this.Html.LabelFor(m => m.Email)
        @this.Html.ValidationMessageFor(m => m.Email)
        @this.Html.TextBoxFor(m => m.Email)

        @this.Html.LabelFor(m => m.Role)
        @this.Html.ValidationMessageFor(m => m.Role)
        @this.Html.DropDownListFor(m => m.Role, (IEnumerable<SelectListItem>)this.ViewBag.Roles)

        @this.Html.LabelFor(m => m.Sucursal)
        @this.Html.ValidationMessageFor(m => m.Sucursal)
        @this.Html.DropDownListFor(m => m.Sucursal, (IEnumerable<SelectListItem>)this.ViewBag.Sucursales)
    </fieldset>
}
